
1
1
.
.
4
4
.
.
2
2
j
j
a
a
v
v
a
a
.
.
e
e
x
x
e
e
java.exe is used to start JVM and run .class files in it.
Examples
Run Test.class in current Directory (PATH Environment Variable is used)
Run Test.class in begin\middle Subdirectory
C:\Install\JDK14\bin\java Test
Specify full path to java.exe (PATH Environment Variable is ignored)
Run Test.class with two Input Parameters
java -cp .;D:\Test\MyClasses Test
Look for Classes in current and full path directory
Output of will be written to the file (instead of Console)
Errors
'java' is not recognized as an internal or external command
java.exe: NoClassDefFoundError
java.exe: My.jar access denied
java.exe: My.jar cannot execute binary file
R
R
e
e
f
f
e
e
r
r
e
e
n
n
c
c
e
e
j
j
a
a
v
v
a
a
.
.
e
e
x
x
e
e
When referencing java.exe PATH Environment Variable will be used to locate it if full path is not given.
Examples
PATH Environment Variable will be used to locate java.exe
C:\Install\JDK14\bin\java Test
Specify full path to java.exe (PATH Environment Variable is ignored)
I
I
n
n
p
p
u
u
t
t
P
P
a
a
r
r
a
a
m
m
e
e
t
t
e
e
r
r
s
s
Java Console Application can be executed by providing optional Input Parameters.
Examples
Output of program will be written to the file
Examples
Output is written to the Console
Output is written to the File ivor.log (it will be created in current Directory)